<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
 <%@ include file="/WEB-INF/jsp/common/common.jsp" %>
<head>
<link href="${pageContext.request.contextPath}/resource/css/def/ztree/metro.css" rel="stylesheet">
<script src="${pageContext.request.contextPath}/resource/js/jquery/plugin/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/resource/js/frm/sys/sysOrgAndStaffChoose.js"></script>
</head>
<body>
	<ul id="myTab" class="nav nav-tabs">
		<li class="active" ><a id="org-tab" href="#Branch" data-toggle="tab"> 组织选择 </a></li>
		<li ><a id="staff-tab" href="#Staff" data-toggle="tab">人员选择</a></li>
	</ul>
	<div id="myTabContent" class="tab-content">
		<div class="tab-pane fade in active" id="Branch">
			<form class="form-horizontal" role="form">
				<div class="checkbox">
					<label class="col-sm-5 control-label"> <input
						type="checkbox" id="linkBranch" onclick="Branch()">是否关联下级
					</label> 
				</div>
				<div>
					<div class="upfpanel-body" id="ztreeDiv100" style="height:100px;overflow:auto;" >
						<ul id="orgtree" class="ztree"></ul>
					</div>
				</div>
				<center>
				<button type="button" id="btn-branch" class="btn btn-info" onclick="saveBranch()" style="display: none;">保存</button>
				<button type="button" id="btn-mass-org"  class="btn btn-info" onclick="saveBranchByOrg()" style="display: none;">保存</button>
				<button type="button" id="btn-mass-staff" class="btn btn-info" onclick="saveBranchByStaff()" style="display: none;">保存</button>
				</center>
			</form>
		</div>
		<div class="tab-pane fade" id="Staff">
			<form class="form-horizontal" role="form">
				<div>
					<div class="upfpanel-body" id="ztreeDiv10" style="height:100px;overflow:auto;">
						<ul id="stafftree" class="ztree"></ul>
					</div>
				</div>
				<center>
				<button type="button" id="btn-staff" class="btn btn-info" onclick="saveStaff()" style="display: none;">保存</button>
				<button type="button" id="btn-mass-org1"  class="btn btn-info" onclick="saveStaffByOrg()" style="display: none;">保存</button>
				<button type="button" id="btn-mass-staff1" class="btn btn-info" onclick="saveStaffByStaff()" style="display: none;">保存</button>
				</center>
			</form>
		</div>
	</div>
</body>
</html>